import request from '@/utils/request'

export function settlementFruit(data) {
  return request({
    url: '/xnf/report/settlementFruit?pageNum='+data.pageNum+'&pageSize='+data.pageSize,
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}
export function settlementFruitDragon(data) {
  return request({
    url: '/xnf/report/settlementFruit/dragon?pageNum='+data.pageNum+'&pageSize='+data.pageSize,
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}
export function settlementFruitExport(data) {
  return request({
    url: '/xnf/report/settlementFruit/export',
    responseType: 'blob',
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}
export function capitalSettlement(data) {
  return request({
    url: '/xnf/report/capitalSettlement?pageNum='+data.pageNum+'&pageSize='+data.pageSize,
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}
export function capitalSettlementExport(data) {
  return request({
    url: '/xnf/report/capitalSettlement/export',
    responseType: 'blob',
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}

export function customsClearanceCompanyCurrentAccountDetail(data) {
  return request({
    url: '/xnf/report/customsClearanceCompanyCurrentAccountDetail?pageNum='+data.pageNum+'&pageSize='+data.pageSize,
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}
export function customsClearanceCompanyCurrentAccountDetailExport(data) {
  return request({
    url: '/xnf/report/customsClearanceCompanyCurrentAccountDetail/export',
    responseType: 'blob',
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}
export function domesticMaterialFlowCompanyCurrentAccountDetail(data) {
  return request({
    url: '/xnf/report/domesticMaterialFlowCompanyCurrentAccountDetail?pageNum='+data.pageNum+'&pageSize='+data.pageSize,
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}

export function domesticMaterialFlowCompanyCurrentAccountDetailExport(data) {
  return request({
    url: '/xnf/report/domesticMaterialFlowCompanyCurrentAccountDetail/export',
    responseType: 'blob',
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}

export function feeStatistics(data) {
  return request({
    url: '/xnf/report/feeStatistics?pageNum='+data.pageNum+'&pageSize='+data.pageSize,
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}
export function feeStatisticsExport(data) {
  return request({
    url: '/xnf/report/feeStatistics/export',
    responseType: 'blob',
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}

export function overseasAgencyProfit(data) {
  return request({
    url: '/xnf/report/overseasAgencyProfit?pageNum='+data.pageNum+'&pageSize='+data.pageSize,
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}
export function overseasAgencyProfitExport(data) {
  return request({
    url: '/xnf/report/overseasAgencyProfit/export',
    headers: {
      repeatSubmit: false
    },
    responseType: 'blob',
    method: 'post',
    data: data
  })
}
export function overseasTransportationEfficiency(data,param) {
  return request({
    url: '/xnf/report/overseasTransportationEfficiency?pageNum='+param.pageNum+'&pageSize='+param.pageSize,
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}

export function overseasTransportationEfficiencyExport(data) {
  return request({
    url: '/xnf/report/overseasTransportationEfficiency/export',
    responseType: 'blob',
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}

export function salesPriceProfit(data) {
  return request({
    url: '/xnf/report/salesPriceProfit?pageNum='+data.pageNum+'&pageSize='+data.pageSize,
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}

export function salesPriceProfitExport(data) {
  return request({
    url: '/xnf/report/salesPriceProfit/export',
    responseType: 'blob',
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}

export function stallRefundEfficiency(data) {
  return request({
    url: '/xnf/report/stallRefundEfficiency?pageNum='+data.pageNum+'&pageSize='+data.pageSize,
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}
export function stallRefundEfficiencyExport(data) {
  return request({
    url: '/xnf/report/stallRefundEfficiency/export',
    responseType: 'blob',
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}

export function accountingEntryList(data) {
  return request({
    url: '/xnf/accounting/entry/list',
    headers: {
      repeatSubmit: false
    },
    method: 'get',
    data: data
  })
}
export function accountingEntryPage(data) {
  return request({
    url: '/xnf/accounting/entry/page',
    headers: {
      repeatSubmit: false
    },
    method: 'get',
    params: data
  })
}

export function accountingEntryPageExport(data) {
  return request({
    url: '/xnf/accounting/entry/export',
    responseType: 'blob',
    headers: {
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}

export function accountingEntryImport(data) {
  return request({
    url: '/xnf/accounting/entry/import',
    headers: {
      repeatSubmit: false
    },
    method: 'POST',
    data: data
  })
}

export function accountingEntryStatistics(data) {
  return request({
    url: '/xnf/accounting/entry/statistics',
    headers: {
      repeatSubmit: false
    },
    method: 'get',
    params: data
  })
}
export function accountingEntryStatisticsPage(data) {
  return request({
    url: '/xnf/accounting/entry/statistics/page',
    headers: {
      repeatSubmit: false
    },
    method: 'get',
    params: data
  })
}
